import request from '../utils/request'
export interface Place{
    CreateTime: string;    //
    Enc: string;           //编码
    ID: number;
    Price: string;
    Remake: string;
    Seat: string;
    State: number;
    Storey: string;
    UpdateTime: string;
}
export interface CarDto{
	PlaceId        :number;       //车位id
	NumberPlate    :string ;   //车牌号
}
export const MyList = (query:{}) => {
    return request({
        url: '/car/MyList',
        method: 'post',
        data:query
    });
};  

export const List = (query:{}) => {
    return request({
        url: '/place/List',
        method: 'post',
        data:query
    });
};  
export const Update = (data:Place) => {
    return request({
        url: '/place/Update',
        method: 'post',
        data:data
    });
};
export const Add = (data:Place) => {
    return request({
        url: '/place/Add',
        method: 'post',
        data:data
    });
};

export const StopCar = (data:CarDto) => {
    return request({
        url: '/car/StopCar',
        method: 'post',
        data:data
    });
};

export const Deleteplace = (id:number) => {
    return request({
        url: '/place/Del?id='+id,
        method: 'post'
    });
};
